package com.geekaca.news.service;

import com.geekaca.news.domain.News;
import com.geekaca.news.domain.NewsCategory;
import com.geekaca.news.domain.NewsComment;

import java.util.List;

public interface CategoryService {
    int getTotalCategories();

    List<NewsCategory> getCategoryList(Integer page, Integer limit);

    List<NewsCategory> getAllCategories(Integer page, Integer limit);

    int updateCategory(Integer categoryId, String categoryName, String categoryIcon);

    int deleteCategory(Integer id);

    int insertCategory(NewsCategory category);
}
